import React, { Component } from 'react'
import {connect, Link} from 'umi';

@connect(({test})=>({
  test
}))
export default class TestComponent extends Component {
  componentDidMount(){
    console.log("testModel:", this.props.test);
    
  }

  render() {
    return (
      <div>
        UmiTest
        <Link to="/">
          home
        </Link>

        <Link to="/docs">
          docs
        </Link>
      </div>
    )
  }
}
